asNumber

abstract fun asNumber(): Double

Returns the XPath result represented as a number.

Throws

if the result is not of a number type (see isNumber)

when the document this instance belongs to is closed